package com.pyip.user.mapper;


import com.pyip.user.domain.User;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

@Mapper
public interface UserMapper {
    
    @Select("select * from tb_user where id = #{id}")
    User findById(@Param("id") Long id);

    @Select("select username from tb_user where id = #{id}")
    String findNameById(@Param(("id")) Long id);
}